PATH![]() |
![]() ![]() |
Determines whether a window is currently zoomed in to the user state or zoomed out to the standard state.
pascal Boolean IsWindowInStandardState (
WindowPtr window,
Point *idealSize,
Rect *idealStandardState);
The IsWindowInStandardState function compares the window's current dimensions to those referred to by the idealSize parameter to determine if the window is currently in the standard state. Your application may use IsWindowInStandardState to decide whether a user's click of the zoom box is a request to zoom to the user state or the standard state, as described in the function ZoomWindowIdeal . Your application may also use IsWindowInStandardState to determine the size and position of the standard state that the Window Manager would calculate for a window, given a specified ideal size; this value is produced in the idealStandardState parameter. See Zooming a Window Gracefully for an example of calling the IsWindowInStandardState function.